﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace MvcApp01.Models
{
    [Table("Departamentos")]
    public class Departamento
    {
        [Key]
        // Para campos NO autonuméricos [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int Id { get; set; }

        public string NombreDepartamento { get; set;  }

        public virtual ICollection<Empleado> Empleados { get; set; }
    }
}